package models

import "time"

type ArticleDiggModel struct {
	Model
	UserID       uint         `gorm:"uniqueIndex:idx_name" json:"userID"`    //用户ID
	UserModel    UserModel    `gorm:"foreignKey:UserID" json:"-"`            //外键
	ArticleID    uint         `gorm:"uniqueIndex:idx_name" json:"articleID"` //用户ID
	ArticleModel ArticleModel `gorm:"foreignKey:ArticleID" json:"-"`         //外键
	CreatedAt    time.Time    `json:"createdAt"`                             //点赞时间
}
